<?php
/**
 * User: @lose
 * Date: 2019-08-26
 * Time: 19:07
 */

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/designerVote',
    'namespace'     => 'Beerus\\Modules\\DesignerVote\\Controllers',
    'middleware'    => ['web', 'admin'],
], function (Router $router) {

    $router->get('/', 'IndexController@index');
    $router->put('/{caseId}', 'IndexController@UpdateNumByCaseId');
    $router->get('everydaylist', 'IndexController@everydayList');

    //设计师大赛报名
    $router->get('designer', 'DesignerController@index');
    $router->put('designer/{id}', 'DesignerController@save');
});